﻿using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace bonus.Models
{
	/// <summary>
	/// 公告
	/// </summary>
	public class Notice
	{
		/// <summary>
		/// ID
		/// </summary>
		public ObjectId _id { get; set; }

		/// <summary>
		/// 公告标题
		/// </summary>
		public string Title {get; set; }

		/// <summary>
		/// 公告内容
		/// </summary>
		public string Content { get; set; }

		/// <summary>
		/// 用户是否能看到
		/// </summary>
		public bool IsUser { get; set; }

		/// <summary>
		/// 公司是否能看到
		/// </summary>
		public bool IsCampay { get; set; }

		/// <summary>
		/// 服务中心是否能看到
		/// </summary>
		public bool IsCenter { get; set; }

		/// <summary>
		/// 添加时间
		/// </summary>
		[BsonDateTimeOptions(Kind = DateTimeKind.Local)]
		public DateTime AddDT { get; set; }

	}
}